package com.xormedia.httpservice.model;

import com.beust.jcommander.Parameter;
import lombok.*;

/**
 * 参数
 *
 * @author pengzhikang
 * @date 2023/5/19 14:01
 * @since 1.0.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@EqualsAndHashCode
public class ServiceArgs {

    @Parameter(names = {"-path"}, description = "http root dir.", required = true, order = 1)
    private String basePath;

    @Parameter(names = {"-port"}, description = "http server port.", order = 2)
    private int port;

    @Parameter(names = {"-help", "-h"}, help = true)
    private boolean help;
}
